from flask import Blueprint, render_template, session, jsonify

show_shop = Blueprint('show_shop', __name__)


@show_shop.before_request
def session_checker():
    if 'user_id' not in session:
        return render_template('401.html')


# 获取所有用户信息
@show_shop.route("/show/shop")
def get_show_shop():
    return render_template('goods_in_type_show.html')


@show_shop.route("/show/search")
def get_show_search():
    return render_template('search_good.html')